import 'dart:ui';

/// total : 0
/// img : ""
/// title : ""
/// intro : ""
/// background : 0

class MyBlockData {
  MyBlockData({
      int? total, 
      String? img, 
      String? title, 
      String? intro,
    Color? background,}){
    _total = total;
    _img = img;
    _title = title;
    _intro = intro;
    _background = background;
}

  MyBlockData.fromJson(dynamic json) {
    _total = json['total'];
    _img = json['img'];
    _title = json['title'];
    _intro = json['intro'];
    _background = json['background'];
  }
  int? _total;
  String? _img;
  String? _title;
  String? _intro;
  Color? _background;
MyBlockData copyWith({  int? total,
  String? img,
  String? title,
  String? intro,
  Color? background,
}) => MyBlockData(  total: total ?? _total,
  img: img ?? _img,
  title: title ?? _title,
  intro: intro ?? _intro,
  background: background ?? _background,
);
  int? get total => _total;
  String? get img => _img;
  String? get title => _title;
  String? get intro => _intro;
  Color? get background => _background;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['total'] = _total;
    map['img'] = _img;
    map['title'] = _title;
    map['intro'] = _intro;
    map['background'] = _background;
    return map;
  }

}